package com.sbx.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sbx.validations.RequiredField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("app_dock")
public class AppDock {

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("程序坞id")
    private String id;

    @ApiModelProperty("应用名(中文)")
    @NotEmpty(message = "应用名不能为空", groups = RequiredField.class)
    private String chName;

    @ApiModelProperty("应用名(英文)")
    @NotEmpty(message = "用户名不能为空", groups = RequiredField.class)
    private String enName;

    @ApiModelProperty(value = "角色id ")
    @NotEmpty(message = "角色id不能为空", groups = RequiredField.class)
    private String roleId;


    @ApiModelProperty("图标")
    @NotEmpty(message = "图标不能为空", groups = RequiredField.class)

    private String icon;

    @ApiModelProperty("描述")
    private Boolean note;

}
